@(user: String)(content: Html)

<!DOCTYPE html>

<html>
    <head>
        <title>Uber Poker v 1.0</title>
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
        <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
        <script src="@routes.Assets.at("javascripts/jquery-1.9.0.min.js")" type="text/javascript"></script>
    </head>
    <body>
        <div class="topbar">
            <div class="fill">
                <div class="container">
                                  
                    @if(user != null) {
                            <form action="@routes.Application.quit(user)" class="pull-right">
                            Username: <strong>@user</strong>
                            <button class="btn" type="submit" onclick="Socket.close()">Quit</button>
                        </form>
                    } else {
                        <form action="@routes.Application.join()" class="pull-right">
                            <input id="user" name="user" class="input-small" type="text" placeholder="Username">
                            <button class="btn" type="submit">Join</button>
                        </form>
                    }
                    
                </div>
            </div>
        </div>
        
        <div class="container">

            <div class="content">
                @content
            </div>

            <footer>
            <!--    <p style="font-size:9px">
                    Uber Poker v 1.0 made using <a href="http://www.playframework.com">Play Framework</a>
                </p> -->
            </footer>

        </div>
    </body>
</html>
